<!DOCTYPE HTML>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="format-detection" content="telephone=no">
		<meta name="viewport" content="width=device-width,user-scalable=no">
		<title>双旦节</title>
		<meta name="keywords" content="狮吼,狮吼直播,手游直播,双投屏直播" />
		<meta name="description" content="狮吼 - 4亿手游玩家的直播平台、狮吼是游戏多旗下手游直播平台，支持双投屏直播的移动端平台，边玩边播，分享快乐！狮吼直播，随时随地录屏直播，语音弹幕独特玩法，各路主播游戏大神齐聚；电竞赛事、综艺娱乐、户外精彩，一切改变尽在 狮吼- 4亿手游玩家的直播平台。" />
		<link rel="stylesheet" href="static/css/base.css" />
		<link rel="stylesheet" href="static/css/style.css" />
		<script src="static/js/jquery-3.1.0.min.js"></script>
        <script src="static/js/util.js"></script>
		<script src="static/js/index.js"></script>
		<script language="JavaScript">
			$(function() {
				var time = 3;
				$(".share").click(function() {
					if(from_user_id == "0") {
						$(".pop").fadeIn(200);
						setTimeout('$(".pop").hide()', time * 1000);
					} else {
						var web_share = {
							"qq": {
								"url": share_url,
								"img": share_icon,
								"title": share_title,
								"subtitle": share_desc
							},
							"wx_person": {
								"url": share_url,
								"img": share_icon,
								"title": share_title,
								"subtitle": share_desc
							},
							"wx_group": {
								"url": share_url,
								"img": share_icon,
								"title": share_title,
								"subtitle": share_desc
							},
							"wb": {
								"url": share_url,
								"img": share_icon,
								"title": share_title,
								"subtitle": share_desc
							}
						};

						if(typeof(window.lion) != "undefined" && typeof(window.lion.web_share) == 'function') {
							window.lion.web_share(JSON.stringify(web_share));
						}
					}
				});
			})
		</script>
	</head>

	<body class="bg">
		<div class="gamerule"></div>
		<div class="share sharebtn2"></div>
		<div class="wrap">
			<div class="mian">
				<div class="TigerJi">
					<div class="main2">
						<div class="container">
							<div class="num num1">
								<div class="num-con num-con1">
									<div class="num-img"></div>
                                    <div class="num-img"></div>
								</div>
							</div>
							<div class="num num2">
								<div class="num-con num-con2">
									<div class="num-img"></div>
                                    <div class="num-img"></div>
								</div>
							</div>
							<div class="num num3">
								<div class="num-con num-con3">
									<div class="num-img"></div>
                                    <div class="num-img"></div>
								</div>
							</div>
						</div>
						<a class="chouJ"></a>
					</div>
				</div>
				<p class="chance">还有<em>5</em>次机会</p>
				<a class="share sharebtn"><img src="static/img/share.png" /></a>
				<div class="p1"><img src="static/img/p1.png" /></div>
			</div>
			<div class="footer">
				<ul>
					<li>
						<a href="index.html"><img src="static/img/tab1curr.png" /></a>
					</li>
					<li>
						<a href="phb.html"><img src="static/img/tab2.png" /></a>
					</li>
					<li>
						<a href="common.html"><img src="static/img/tab3.png" /></a>
					</li>
				</ul>
			</div>

			<!--规则弹窗--->
			<div class="mask"></div>
			<div class="tcbg gameruletan">
				<div class="yXrule">
					<h2 class="Tantitle"><img src="static/img/gameruletan.png"/></h2>
					<div class="rule">
						<span>游戏奖励</span>
						<p>10狮牙/100狮牙/50经验值/500经验值/“圣诞帽”勋章3天 /“麋鹿”勋章5天/“圣诞老人”勋章30天/铂金VIP体验7天/狮吼实物礼盒</p>
						<span>机会获取方式</span>
						<p>1.活动期间，凡每天登录用户即可获得1次抽奖机会；</p>
						<p>2.活动期间，每天分享一次此活动，并邀请好友点开此链接，即可获得1次抽奖机会（每个用户每天只可领取1次）如有1个新用户通过此分享页面下载并注册，则可额外获得3次抽奖机会（不限制次数）；</p>
						<p>3.每送出50个“雪球”或50颗“圣诞树”即可获取一次抽奖机会，不限定次数；</p>
						<span>活动须知</span>
						<p>1.所有虚拟物品奖励会在活动结束后3个工作日内发放完毕，实物奖励将有专属客服联系进行发放；</p>
						<p>2.若对本活动有任何疑问，可以到我的-意见反馈中咨询在线客服；</p>
						<p>3.本活动最终解释权归狮吼直播平台所有。</p>
					</div>
					<a class="close"><img src="static/img/iknow.png" /></a>
				</div>
			</div>
			<!--分享弹窗-->
			<div class="shareLw"><img src="static/img/shareliwutan.png" />
				<a class="close"><img src="static/img/iknow.png" /></a>
			</div>
			<!--中奖--->
			<div class="zjpop zj">
				<div class="zjMain">
					<img src="static/img/tanZj.png" />
                    <span>恭喜获得 <a>100狮牙</a></span>
                    <div class="zjjpImg"><em></em></div>
					<a class="share zjshare"></a>
				</div>
			</div>
			<!--未中奖--->
			<div class="zjpop wzj" >
				<div class="zjMain">
					<img src="static/img/tanWzj.png" />
					<a class="share zjshare"><img src="static/img/share.png" /></a>
				</div>
			</div>
			<!--没机会--->
			<div class="zjpop wjh" >
				<div class="zjMain">
					<img src="static/img/tanWjh.png" />
					<a class="share zjshare"><img src="static/img/share.png" /></a>
				</div>
			</div>
	</body>

</html>
<script type="text/javascript">
	
	var playnum =5;
	var time = 3;
	var isture = true;
	var clickfunc = function(callback) {
		reset();
		var TextNum1
		var TextNum2
		var TextNum3
		TextNum1 = parseInt(Math.random() * 9) //随机数
		TextNum2 = parseInt(Math.random() * 9)
		TextNum3 = parseInt(Math.random() * 9)

		var num1 = [0, -53, -106, -159, -212, -265, -318, -371, -424][TextNum1]; //在这里随机
		var num2 = [0, -53, -106, -159, -212, -265, -318, -371, -424][TextNum2];
		var num3 = [0, -53, -106, -159, -212, -265, -318, -371, -424][TextNum3];
		 
		$(".num-con1").animate({
			"top": -513//总高度
		}, 1000, "linear", function() {
			$(this).css("top", 0).animate({
				"top": num1
			}, 1000, "linear");
		});
		$(".num-con2").animate({
			"top": -513
		}, 1000, "linear", function() {
			$(this).css("top", 0).animate({
				"top": num2
			}, 1500, "linear");
		});
		$(".num-con3").animate({
			"top": -513
		}, 1000, "linear", function() {
			$(this).css("top", 0).animate({
				"top": num3
			}, 1300, "linear");
		});

		callback(num1, num2, num3);
	}

	$(".chouJ").click(function() {
		if(playnum > 0 && isture) { //还有次数就执行
			isture = false;
			playnum = playnum - 1; //执行了则次数减1
			if(playnum <= 0) {
				playnum = 0;
			}
			$('.chance em').html(playnum);
			clickfunc(function(numCon1, numCon2, numCon3) {
			
				//中奖
				if((numCon1 == numCon2) && (numCon2 = numCon3)) {
					-(numCon1/53)
					var zjjpImgTop = (-(numCon1/53))*65
					$(".zjjpImg em").css("top", -zjjpImgTop+'px')
					setTimeout(function(){
						$(".zj,.mask").show();
						isture = true;
					}, time * 1000);

				} else {
					//未中奖
					setTimeout(function(){
						$(".wzj,.mask").show();
						isture = true;
					}, time * 1000);
				}
			});
		} else { 
			//没次数
			$(".wjh,.mask").show();
		}
	});

	function reset() {
		$(".num-con1,.num-con2,.num-con3").css({
			"top": -0
		});
	}
</script>